package cn.achao.csr.api;

import cn.achao.csr.api.factory.AuthFallbackFactory;
import cn.achao.csr.api.model.dto.ZfbNotifyDTO;
import cn.achao.csr.base.resp.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: achao
 **/
@FeignClient(contextId = "csrAuthContextId", path = "/auth", value = "csr-auth", fallbackFactory = AuthFallbackFactory.class)
public interface AuthApi {

    @PostMapping("/zfbNotify")
    R<?> zfbNotify(@RequestBody @Validated ZfbNotifyDTO req);
}
